<style>
    #hazardExamine-edit .layui-input-block{
        margin-left: 115px;
    }
    #hazardExamine-edit .layui-panel-company{
        margin-top: 10px;
    }
    #hazardExamine-edit .layui-panel{
        margin-top: 10px;
    }
    #hazardExamine-edit .layui-btn-danger{
        float: right;
    }
</style>
<div class="febs-container" id="hazardExamine-edit">
    <div class="febs-open-body">
        <form class="layui-form" action="" lay-filter="hazardExamine-edit-form">
            <div class="layui-card">
                <blockquote class="layui-elem-quote layui-elem-quote-primary">安全检查信息</blockquote>
                <div class="layui-card-body">
                    <div class="layui-form-item febs-hide">
                        <label class="layui-form-label">主键：</label>
                        <div class="layui-input-block">
                            <input type="text" name="examineId" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-row">
                            <div class="layui-col-xs6">
                                <label class="layui-form-label layui-form-label-sm febs-form-item-require">公司名称：</label>
                                <div class="layui-input-block">
                                    <select name="tenantId" id="tenantId" lay-search="" lay-filter="tenantChoose" lay-verify="required">
                                        <option th:each="item:${tenantList }"
                                                th:value="${item.tenantId}" th:text="${item.tenantName}"
                                                th:selected="${tenantId ==item.tenantId}"
                                                >
                                    </select>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-row">
                            <div class="layui-col-xs6">
                                <label class="layui-form-label febs-form-item-require">检查类别：</label>
                                <div class="layui-input-block">
                                    <select name="examineCategory" id="examineCategory"  lay-verify="required">
                                        <option value="">请选择</option>
                                        <option value="1">日常</option>
                                        <option value="2">专项</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-col-xs6">
                                <label class="layui-form-label febs-form-item-require">检查类型：</label>
                                <div class="layui-input-block">
                                    <select name="examineType" id="examineType" lay-filter="examineType" lay-search="" lay-verify="required">
                                        <option value="">请选择</option>
                                        <option value="1">公司检查</option>
                                        <option value="2">部门检查</option>
                                        <option value="3">车间检查</option>
                                        <option value="4">班组检查</option>
                                        <option value="5">项目检查</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-row">
                            <div class="layui-col-xs12">
                                <label class="layui-form-label febs-form-item-require">检查标题：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="examineTitle" autocomplete="off" class="layui-input" lay-verify="required" placeholder="请输入检查标题">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-row">
                            <div class="layui-col-xs6">
                                <label class="layui-form-label febs-form-item-require">开始时间：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="startDate" id="startDate" lay-verify="date"
                                           placeholder="请输入开始时间" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-col-xs6">
                                <label class="layui-form-label febs-form-item-require">结束时间：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="endDate" id="endDate" lay-verify="date"
                                           placeholder="请输入结束时间" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>


<!--                         公司、综合检查-->
            <div id="company_field" class="layui-card" style="height: 350px;">
                <blockquote class="layui-elem-quote layui-elem-quote-primary">分组信息</blockquote>
                <div class="layui-card-body  febs-hide" id="company_box">
                    <div class="layui-panel layui-panel-company" id="panel_company0">
                        <div class="layui-field-box">
                            <div class="layui-form-item">
                                <div class="layui-row">
                                    <div class="layui-col-xs12">
                                        <label class="layui-form-label">检查人员：</label>
                                        <div class="layui-input-block">
                                            <table lay-filter="groupUserTable_company" id="groupUserTable_company" lay-data="{id: 'groupUserTable_company'}"></table>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-row">
                                    <div class="layui-col-xs12">
                                        <div class="layui-input-block">
                                            <button type="button" class="layui-btn layui-btn-sm" id="addRelation_company">
                                                <span class="layui-icon layui-icon-add-1" ></span>检查分组
                                            </button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

<!--                        部门、车间、班组检查-->
            <div id="dept_field" class="layui-card febs-hide">
                <blockquote class="layui-elem-quote layui-elem-quote-primary">分组信息</blockquote>
                    <div class="layui-card-body" id="dept_box">

                        <div class="layui-form-item layui-row-button" >
                            <div class="layui-inline add-group-btn" >
                                <div id="addGroup_dept" class="layui-btn layui-btn-sm">
                                    <em class="layui-icon">&#xe654;</em> 增加分组信息
                                </div>
                            </div>
                        </div>
                </div>
            </div>

<!--                        项目检查-->
            <div id="project_field" class="layui-card febs-hide">
                <blockquote class="layui-elem-quote layui-elem-quote-primary">分组信息</blockquote>
                    <div class="layui-card-body" id="project_box">

                        <div class="layui-form-item layui-row-button" >
                            <div class="layui-inline add-group-btn" >
                                <div id="addGroup_project" class="layui-btn layui-btn-sm">
                                    <em class="layui-icon">&#xe654;</em> 增加分组信息
                                </div>
                            </div>
                        </div>
                </div>
            </div>


            <div class="layui-form-item febs-hide">
                <button class="layui-btn" lay-submit="" lay-filter="hazardExamine-edit-form-save" id="save"></button>
                <button class="layui-btn" lay-submit="" lay-filter="hazardExamine-edit-form-submit" id="submit"></button>
                <button type="reset" class="layui-btn" id="reset"></button>
            </div>
        </form>
    </div>
</div>
<script type="text/html" id="group-user-option-company">
<!--    <a lay-event="edit" ><em class="layui-icon febs-edit-area febs-red">&#xe7a4;</em></a>-->
    <a lay-event="del" ><em class="layui-icon febs-edit-area febs-red">&#xe7f9;</em></a>
</script>
<script type="text/html" id="group-user-option-dept">
<!--    <a lay-event="edit" ><em class="layui-icon febs-edit-area febs-red">&#xe7a4;</em></a>-->
    <a lay-event="del" ><em class="layui-icon febs-edit-area febs-red">&#xe7f9;</em></a>
</script>
<script type="text/html" id="group-user-option-project">
<!--    <a lay-event="edit" ><em class="layui-icon febs-edit-area febs-red">&#xe7a4;</em></a>-->
    <a lay-event="del" ><em class="layui-icon febs-edit-area febs-red">&#xe7f9;</em></a>
</script>
<script data-th-inline="javascript">
    hazardExamineData = [[${hazardExamine}]];
    currentTenantId = [[${tenantId}]];
</script>
<script th:src="@{/febs/js/hazard/hazardExamine/hazardExamineEdit.js(v=1)}"></script>